<?php

declare(strict_types=1);

return [
    /*
    |--------------------------------------------------------------------------
    | View Storage Paths
    |--------------------------------------------------------------------------
    |
    | Most templating systems load templates from disk. Here you may specify
    | an array of paths that should be checked for your views. Of course
    | the usual Laravel view path has already been registered for you.
    |
    */

    'paths' => [
        resource_path('views'),
    ],

    /*
    |--------------------------------------------------------------------------
    | Compiled View Path
    |--------------------------------------------------------------------------
    |
    | This option determines where all the compiled Blade templates will be
    | stored for your application. Typically, this is within the storage
    | directory. However, as usual, you are free to change this value.
    |
    */

    'compiled' => env(
        'VIEW_COMPILED_PATH',
        realpath(storage_path('framework/views'))
    ),
    '404' => 'common.404',
    'prefix' => 'T:',
    // 数据为空时默认展示的内容
    'empty' => '',
    // 模版标签方法
    'tag_action' => [
        'ad' => [
            'class' => App\Service\Contract\AdInterface::class,
            'cache' => 2 * 60,
        ],
        'nav' => [
            'class' => \App\Service\Contract\NavigationInterface::class,
        ],
        'link' => [
            'class' => \App\Service\Contract\LinkInterface::class,
        ],
        'archives' => [
            'class' => \App\Service\Contract\ArchiveInterface::class,
        ],
        'details' => [
            'class' => \App\Service\Contract\ArchiveInterface::class,
            'method' => 'details',
        ],
        'cate' => [
            'class' => \App\Service\Contract\CategoryInterface::class,
        ],
        'channel' => [
            'class' => \App\Service\Contract\CommonInterface::class,
            'method' => 'getChannel',
        ],
        'channellist' => [
            'class' => \App\Service\Contract\CommonInterface::class,
            'method' => 'getChannelList',
        ],
        'type' => [
            'class' => \App\Service\Contract\CommonInterface::class,
            'method' => 'getType',
        ],
        'breadcrumb' => [
            'class' => \App\Service\Contract\CommonInterface::class,
            'method' => 'getBreadcrumb',
        ],
        'sql' => [
            'class' => \App\Service\Contract\CommonInterface::class,
            'method' => 'getSql',
        ],
        'page' => [
            'class' => \App\Service\Contract\CommonInterface::class,
            'method' => 'getPage',
        ],
    ],
];
